package cn.jdy.plugins.wap;

import java.util.ArrayList;
import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import cn.jdy.common.ctrl.BaseCtrl;

/**
 * 购物车
 * @author yangyi
 * @date 2014-09-03
 */
@RestController
@RequestMapping("/cart")
public class CartCtrl extends BaseCtrl{

  /**
   * 购物车列表查询
   */
  @RequestMapping("")
  public ModelAndView list() {
    ModelAndView mv = new ModelAndView(super.t + "/cartList");
    List list = new ArrayList();
    list.add("1");
    mv.addObject("list", list);
    return mv;
  }
  /**
   *确认订单
   */
  @RequestMapping("/order")
  public ModelAndView orderSure() {
    ModelAndView mv = new ModelAndView(super.t + "/orderConfirm");
    List list = new ArrayList();
    list.add("1");
    mv.addObject("list", list);
    return mv;
  }
}
